package com.sch.hospital.domain;

import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 患者家庭成员对象 familymember
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Familymember
{
    /** 成员ID，自增主键 */
    private Long id;

    /** 关联的用户ID */
    private Long userId;

    /** 成员姓名 */
    private String name;

    /** 与用户关系 */
    private String relation;

    /** 性别:0男,1女 */
    private Long sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    /** 身份证号 */
    private String idCard;

    /** 联系电话 */
    private String telephone;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;


    public Familymember() {
    }

    public Familymember(Long id, Long userId, String name, String relation, Long sex, Date birthday, String idCard, String telephone, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.userId = userId;
        this.name = name;
        this.relation = relation;
        this.sex = sex;
        this.birthday = birthday;
        this.idCard = idCard;
        this.telephone = telephone;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userId
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 设置
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return relation
     */
    public String getRelation() {
        return relation;
    }

    /**
     * 设置
     * @param relation
     */
    public void setRelation(String relation) {
        this.relation = relation;
    }

    /**
     * 获取
     * @return sex
     */
    public Long getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(Long sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return birthday
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * 设置
     * @param birthday
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * 获取
     * @return idCard
     */
    public String getIdCard() {
        return idCard;
    }

    /**
     * 设置
     * @param idCard
     */
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    /**
     * 获取
     * @return telephone
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * 设置
     * @param telephone
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Familymember{id = " + id + ", userId = " + userId + ", name = " + name + ", relation = " + relation + ", sex = " + sex + ", birthday = " + birthday + ", idCard = " + idCard + ", telephone = " + telephone + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
